<div class="panel panel-default mt20">
  <div class="panel-body">
    <div class="col-sm-12">
      <div class="row">
        <div class="col-sm-3">
          <input type="text" placeholder="景点名称" class="form-control" ng-model="searchform.scenicspot_name" ng-keyup="myKeyup($event)">
        </div>
        <div class="col-sm-1">
          <button class="btn btn-block btn-info" ng-click="load()">检索</button>
        </div>
        <div class="col-sm-2 pull-right">
          <button class="btn btn-block btn-success" ng-click="createspot()">添加景点</button>
        </div>
      </div>
    </div>
  </div>
</div>

<div class="panel panel-default mt20">
  <div class="panel-body">
    <table class="table table-condensed table-hover table-bordered">
      <thead>
        <tr>
          <th class="col-md-2 text-center">景点名称</th>
          <th class="col-md-2 text-center">景点编号</th>
          <th class="col-md-1 text-center">围栏方式</th>
          <th class="col-md-2 text-center">创建时间</th>
          <th class="col-md-2 text-center">操作</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="obj in objs">
          <td class="text-center">{{obj.scenicspot_name}}</td>
          <td class="text-center">{{obj.scenicspot_id}}</td>
          <td class="text-center" ng-if="obj.rail_type==1">圆</td>
          <td class="text-center" ng-if="obj.rail_type==2">矩形</td>
          <td class="text-center">{{obj.create_date}}</td>
          <td class="text-center">
            <a class="btn btn-success btn-xs" ng-show="obj.state=='1'" ng-click="spotstateup(obj.scenicspot_id)">上架</a>
            <a class="btn btn-warning btn-xs" ng-show="obj.state=='0'" ng-click="spotstatedown(obj.scenicspot_id)">下架</a>
            <a class="btn btn-info btn-xs" ng-click="updatespot(obj.scenicspot_id)">编辑</a>
            <a class="btn btn-danger btn-xs" ng-click="spotdelflgdel(obj.scenicspot_id)">删除</a>
          </td>
        </tr>
      </tbody>
    </table>
    <div class="text-right">
      <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load(1)" previous-text="上一页" next-text="下一页"
        first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
        class="m-t-none m-b">
      </pagination>
    </div>

  </div>
</div>